package com.yinzifan.seller.controller;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import com.yinzifan.entity.Product;
import com.yinzifan.seller.service.ProductRpcService;

@RestController
@RequestMapping("/product")
public class ProductController {

	@Autowired
	private ProductRpcService productRpcService;
	
	@RequestMapping("/{id}")
	public Product findOne(@PathVariable String id) {
		return productRpcService.findOne(id);
	}
}
